﻿//------------------------------------------------------------------------------
//  Author: Sandy Stewart, Fujitsu Ltd
//  Date:   03/06/2011
//
//
//  These partial classes are to add the scaffolding attributes to those
//  entities/tables in the model that require updating by DPS staff.
//  This allows Dynamic Data to automtically expose these tables via its
//  interface without exposing other tables that are maintained via
//  data transformations (eg from CPAL)
//------------------------------------------------------------------------------
using System;
using System.Data.Objects;
using System.Data.Objects.DataClasses;
using System.ComponentModel.DataAnnotations;
using System.Data.EntityClient;

namespace APH.Parl2.Data.Model.Parl2
{
    [ScaffoldTable(true)]
    public partial class PostcodeElectorateMap : EntityObject { }

    [ScaffoldTable(true)]
    public partial class ParliamentSession : EntityObject { }

    [ScaffoldTable(true)]
    public partial class ParliamentarianUpdate : EntityObject { }

    [ScaffoldTable(true)]
    [MetadataType(typeof(Electorate.Metadata))]
    public partial class Electorate : EntityObject {
        internal class Metadata
        {
            [UIHint("ValuesList", null, "ValueList", "ACT,NSW,NT,QLD,SA,TAS,VIC,WA")]
            public object State { get; set;}
        }
    }

    [ScaffoldTable(true)]
    public partial class VacantElectorateOffice : EntityObject { }

}